You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TDenseMtxVec Class > TDenseMtxVec Methods > DotProdc Method > TDenseMtxVec.DotProdc Method ([In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
Example
using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a,b; MtxVec.CreateIt(out a, out b); try { a.SetIt(false, new double[] {1,2,3,4}); b.SetIt(false, new double[] {5,6,7,8}); double prod = a.DotProdc(b); //= (1+2i)*(5+6i)+(3+4i)*(7+8i) } finally { MtxVec.FreeIt(ref a,ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.